package homework.String_Type;

import java.util.Random;

public class String_Random {
    public static void main(String_type[] args) {
        // ---------------------Begin------------------------
        // 设置种子为 2022
        Random random = new Random(2022);

        // 1. 生成 5 个整数并打印输出
        System.out.println(random.nextInt());
        System.out.println(random.nextInt());
        System.out.println(random.nextInt());
        System.out.println(random.nextInt());
        System.out.println(random.nextInt());

        // 2. 生成 5 个 double 类型并打印输出
        System.out.println(random.nextDouble());
        System.out.println(random.nextDouble());
        System.out.println(random.nextDouble());
        System.out.println(random.nextDouble());
        System.out.println(random.nextDouble());
        // ---------------------End------------------------
    }
}
